<?php
header("Content-type: text/html;charset=UTF-8");
?>
document.write("<ul>");
<?php if(count($list['list'])) foreach ($list['list'] as $v):
$v['price'] = ($v['price2']>0 && $v['price2']>$v['price1'] ? "特价 " : '')."&yen; {$v['price1']}";
?>
document.write("<li><?php if($_GET['pic']):?><a target=\"_blank\" title=\"<?php echo htmlspecialchars($v['name'])?>\" href=\"http://www.loopo.cn/items/<?php echo $v['id']?>\"><img src='http://www.loopo.cn/images/items/s/<?php echo $v['model']?>.gif' border='0'></a><?php endif?><h4><a target=\"_blank\" title=\"<?php echo htmlspecialchars($v['name'])?>\" href=\"http://www.loopo.cn/items/<?php echo $v['id']?>\"><?php echo htmlspecialchars($v['name'])?></a></h4><?php if($_GET['price']):?><span><?php echo $v['price']?></span><?php endif;?></li>");
<?php endforeach;?>
document.write("</ul>");